package com.gscitysfy.cus.drain.modules.resource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gscitysfy.cus.drain.modules.resource.entity.ResourceTeam;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Optional;

/**
 * <p>
 * 防汛队伍表 Mapper 接口
 * </p>
 *
 * @author Administrator
 * @since 2022-10-23 16:30:26
 */
public interface ResourceTeamMapper extends BaseMapper<ResourceTeam> {
    /**
     * 获取未分配队伍
     *
     * @return
     */
    List<ResourceTeam> fetchUnAssignedGis();

    /**
     * 获取已分配队伍
     *
     * @return
     */
    List<ResourceTeam> fetchAssignedGis();

    Optional<ResourceTeam> getByPhone(@Param("phone") String phone);
}
